package com.example.streamproducer.highlevel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lihui
 * @Date: 2022-03-23 10:31
 * @Description:
 */
@RestController
public class SourceMessageController {

    @Autowired
    SourceMessageProducer sourceMessageProducer;

    @RequestMapping("/send")
    public void send(){

        sourceMessageProducer.send();
        System.out.println("source 消息发送成功");

    }

}
